﻿using BW.Model;

namespace BW.IBLL
{
    public interface IBaseBLL
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        Task<int> Add(MombetModel t);
        /// <summary>
        /// 显示
        /// </summary>
        /// <param name="totalcount">总条数</param>
        /// <param name="totalpage">总页数</param>
        /// <param name="pageindex">共几页</param>
        /// <param name="pagesize">共几条</param>
        /// <returns></returns>
        IQueryable<MombetModel> GetShow(out int totalcount, out int totalpage, int pageindex = 1,int pagesize=3);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<MombetModel> Find(int id);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        Task<int> update(MombetModel t);
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="username"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        Task<dynamic> Login(string username, string pwd);



    }
}
